Viggen tail number fix by GotSpaceGame

Check out www.youtube.com/@GotSpaceGame for 3 minute DCS tutorials
Please email me @gmail.com if you have any questions or feedback on this fix


INSTRUCTIONS:

1.	Open the folder for the livery you want to fix (usually located in C:\Users\USERNAME\Saved Games\DCS.openbeta\Liveries\AJS37)
2.	Copy the file HB_VIG_TacNo_Transparant.dds from this fix into the folder for the broken livery
3.	Open description.lua and insert the following three lines within the "livery = {      }" section of the code:

	--Tail Numbers--------------------------------
	{"HB_VIG_EXT_TailTacNo", 0 ,"HB_VIG_TacNo_Transparant",false}; --    TAIL NUMBER FIX
	{"HB_VIG_EXT_TailTacNo_02", 0 ,"HB_VIG_TacNo_Transparant",false}; -- TAIL NUMBER FIX

4.	Save and exit. Custom tail numbers will no longer appear on your livery.



***HOW THIS WORKS***
(you only need to read this bit if you're really interested or if you want to build on what i've done)

The file HB_VIG_TacNo_Transparant.dds is an image file similar to a .png file. It contains a font that DCS uses to draw custom tail numbers onto the Viggen. The file "description.lua" can reference a custom file for this font using a reference to "HB_VIG_EXT_TailTacNo".

If no such reference exists in description.lua then the game will refer to using the default font for the Viggen. My version of the font file is just an empty transparent image, so instead of drawing the default font onto the tailfin, the game will look for the font file referenced in those two lines of code, find a transparant font, and draw "nothing" onto the tail.

Yes, it's a slightly clunky way to fix the problem, and maybe slightly less efficient than using a custom arg to suppress the drawing all together, but i've found that custom args to behave unpredictably on some aircraft, including the Viggen. This approach forces the tail number to be suppressed in every circumstance i have tested so far. Please do let me know if you find a situation that causes the fix to stop working!



***FULL EXAMPLE DESCRIPTION.LUA FILE***
(this shows where i usually place the lines of code within description.lua)

	livery = {


	--Diffuse  -----------------------------------
	{"LNS_VIG_EXT_FUS_T", 0 ,"LNS_VIG_FUSELAGE_T",false}; -- paintjob for the tail section
	{"LNS_VIG_EXT_FUS_L", 0 ,"LNS_VIG_FUSELAGE_L",false}; -- paintjob for the left fuselage
	{"LNS_VIG_EXT_FUS_R", 0 ,"LNS_VIG_FUSELAGE_R",false}; -- paintjob for the right fuselage
	{"LNS_VIG_EXT_WING_L", 0 ,"LNS_VIG_WING_L",false};    -- paintjob for the left wing
	{"LNS_VIG_EXT_WING_R", 0 ,"LNS_VIG_WING_R",false};    -- paintjob for the right wing

	--Tail Numbers--------------------------------
	{"HB_VIG_EXT_TailTacNo", 0 ,"HB_VIG_TacNo_Transparant",false}; --    TAIL NUMBER FIX
	{"HB_VIG_EXT_TailTacNo_02", 0 ,"HB_VIG_TacNo_Transparant",false}; -- TAIL NUMBER FIX

	--Pylons -------------------------------------
	{"LNS_VIG_PYLONS_02", 0 ,"Pilon_01",false};
	{"LNS_VIG_Pylons_01", 0 ,"Pilon_02",false};
	{"LNS_VIG_WING_PYLONS", 0 ,"Pilon_03",false};
	{"LNS_VIG_OUTER_PYLONS ", 0 ,"Pilon_04",false};

	{"AGM_65B", DIFFUSE, "RB75_Diff", true};	
	}

	name = "#3 JA-37 F21 Akktu Stakki - Fixed"

	Countries = {"SWE"}

